/*
2021-7-31
https://www.acwing.com/problem/content/3791/
*/
#include<iostream>

using namespace std;
const int N=1e5+5;
int n;
int a[N];
int sum[N];

int main()
{
    cin>>n;
    for(int i=1;i<=n;i++)
    {
        cin>>a[i];
        sum[i]=sum[i-1]+a[i];
    }
    int res=0;
    
    for(int i=1;i<n;i++)
    {
        if(sum[i]*2==sum[n]) res++;
    }
    
    cout<<res<<endl;
    
    return 0;
}

